import { 
  Home,
  Mall,
  Cart,
  Mine,
  Detail,
  NotFound
} from './pages';  

const routes = [{
  path: '/home',
  component: Home,
  title: '首页',
  icon: '&#xe631;'
}, {
  path: '/mall',
  component: Mall,
  title: '商城',
  icon: '&#xe632;'
}, {
  path: '/cart',
  component: Cart,
  title: '购物车',
  icon: '&#xe600;',
  isAuthRequired: true
}, {
  path: '/mine',
  component: Mine,
  title: '我的',
  icon: '&#xe630;'
}, {
  path: '/detail/:id',
  component: Detail
}, {
  path: '/404',
  component: NotFound
}];

export default  routes;